From: Ewan Mellor Date: Tue, 5 Sep 2006 16:06:01 +0000 (+0100) Subject: This patch improves error message of xm console command. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15668^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8037b37752eb7d17b02650e0f6b3115a0e04de1a;p=xen.git This patch improves error message of xm console command. # xm console Domain-0 Can't specify Domain-0 Signed-off-by: Masaki Kanno --- diff --git a/tools/console/client/main.c b/tools/console/client/main.c index a43ee26463..829d5b2964 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -220,7 +220,8 @@ int main(int argc, char **argv) user friendly, we'll bail out here since no data will ever show up on domain-0. */ if (domid == 0) { - err(errno, "Could not read tty from store"); + fprintf(stderr, "Can't specify Domain-0\n"); + exit(EINVAL); } /* Wait a little bit for tty to appear. There is a race